from django.urls import path
from rest_framework_simplejwt.views import TokenObtainPairView
from user.views import user_register, upload_avatar, get_avatar, update_profile, get_question, modify_password, \
    get_profile

urlpatterns = [
    path('register/', user_register),  # 用于注册的路由
    path('login/', TokenObtainPairView.as_view()),  # 登录用
    path('profile/', update_profile),
    path('get_question/', get_question),
    path('modify_password/', modify_password),
    path('upload_avatar/', upload_avatar),
    path('get_avatar/', get_avatar),
    path('get_profile/', get_profile),
]
